package com.automannn.dubbo.withSpring;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author chenkh
 * @time 2021/8/5
 */
public class DubboRunWithSpringProvider {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:provider.xml");
        context.start();
        System.out.println("-----dubbo提供者端启动-----");
        synchronized (DubboRunWithSpringProvider.class){
            try {
                DubboRunWithSpringProvider.class.wait();
            }catch (Exception e){

            }
        }
    }
}
